<?php  echo $this->headLink()->prependStylesheet('/jquery/jquery.simpledialog/jquery.simpledialog.0.1.css'); ?>
     
<br></br>
<h1>Gestion des Contraintes</h1>
<table class="table table-striped" style="width: 82.97872339599999%;" align="center" >
<thead>

 <script>
	// increase the default animation speed to exaggerate the effect
	//$.fx.speeds._default = 1000;

	function ouvrir(page) 
	{
	/*
		alert(page);

		 jQuery.ajax({
			  type: "GET",
			  url: page,
			  async :false,
			  success: function(data)
			  {

				  jQuery( "#dialog" ).html(data);
				  jQuery('#dialog').simpleDialog({showCloseLabel: true});
				
				   
			  }
		  
			 });*/
	}
	
	$(function() {
		
		jQuery('.thickbox2').simpleDialog();
		
	});
	</script>
   
   	<?php
  		// Render each the title of each post for the current page in a list-item
	 	foreach ($this->paginator as $item) :     
	      foreach ($item as $key => $value)  :	?>
	       <?php if(isset($this->header["$key"])):?>
	       <th style="text-align: center;"><?php echo $this->header["$key"]; ?></th>
	       <?php endif;?>
	       <?php endforeach; break; endforeach; ?> 
	       
	       <th>Actions</th>
	 </thead>
	 <tbody>
	 <?php  $i=0; foreach ($this->paginator as $item) :?>
	       <tr>
	    
	     <?php foreach ($item as $key => $value):?> 
	       <td><?php echo $value; ?></td>
	     <?php endforeach; ?>
			<td>
			<a class="thickbox2" type="button" value="Delete"
   title="Supprimer colonne" 
   
   href="<?php echo $this->url(array('action'=>'deleteconstrainte','module'=>'pilotage','controller'=>'Modelmangement'),null,true).'?height=200&width=500&id='.$item[$this->keyOfData]?>">Supprimer</a>;
	  
	       
			<a href="<?php echo $this->url (
        						array('controller'=>'modelmangement',
        						        'action'=>'modifiercontraint',"module"=>"pilotage","id"=>$item[$this->keyOfData]))?>">Modifier</a>
           </td>
	       
	    </tr>
	  <?php  $i++;endforeach;?>
 
 </thed>
</table>

<td align="left">
<a href="<?php echo $this->url (
					              array('controller'=>'modelmangement',
					                      'action'=>'constraint',"module"=>"pilotage"))?>">Ajouter une contrainte</a>
</td>

<br>
</br>
 <div class="control-group">
<?php echo $this->paginator; ?></div>

    
